<?php $ui = $this->load->library('Ui'); ?>
<h2>Edit Blog Post</h2>
 <?php $header = $ui->makeOption('<a href="#" rel="#overlay">Get Help With This Page</a>' . ' '.
					anchor('blog/admin', 'Manage Blog') . ' '.
					anchor('blog/admin/add_post', 'Add Blog Post'). ' ', 1 ).
					'<div class="clear"></div>';
	$content = '<form method="POST">
						<table class="hidden-table" cellpadding="5" width="100%">
							<tr class="post_title">
								<td>Post Title: </td>
								<td><input type="text" name="title" class="form" value="'.$title.'" id="title" /></td>
								<td></td>
							</tr>
							<tr>
								<td colspan="3">Content:</td>
							</tr>
							<tr>
								<td colspan="3"><textarea name="blog_content" cols="112" rows="20">'.$content.'</textarea></td>
							</tr>
							<tr>
								<td colspan="3"><input type="submit" name="post_edit" value="Edit Post!" /></td>
							</tr>
						</table>
					</form>';

	echo $ui->makeDialog('Edit Blog Post'.$header,$content,'maximize center');

?>

<div class="overlay" id="overlay">

    <!-- here is the content for overlay, can be anything -->
    <h2 style="margin:10px 0">Help! <em>Using the Edit Post feature.</em></h2>

    <p>
            <strong>Post Title</strong><br />
            <span class="help">A title for your blog post. This has to be under 255 characters.</span><br /><br />
			<strong>Content</strong><br />
            <span class="help">The content for the page. You can use the rich text editor or put your own HTML into the form.</span><br /><br />
    </p>

</div>
